﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using System.Windows.Media.Imaging;
using System.Windows.Data;

namespace Galnote.Upload
{
	public partial class Upload : Page
	{
		public Upload()
		{
			InitializeComponent();
		}

		// 当用户导航到此页面时执行。
		protected override void OnNavigatedTo(NavigationEventArgs e)
		{
		}

		private void UploadList_Loaded(object sender, RoutedEventArgs e)
		{
			Works WP10 = new Works();
			WP10.Image = new BitmapImage(new Uri(@"/Images/00010.jpg", UriKind.Relative));


			Works WP11 = new Works();
			WP11.Image = new BitmapImage(new Uri(@"/Images/00003.jpg", UriKind.Relative));


			Works WP12 = new Works();
			WP12.Image = new BitmapImage(new Uri(@"/Images/00004.jpg", UriKind.Relative));


			Works WP13 = new Works();
			WP13.Image = new BitmapImage(new Uri(@"/Images/00006.jpg", UriKind.Relative));


			Works WP14 = new Works();
			WP14.Image = new BitmapImage(new Uri(@"/Images/00008.jpg", UriKind.Relative));


			Works WP15 = new Works();
			WP15.Image = new BitmapImage(new Uri(@"/Images/00006.jpg", UriKind.Relative));


			Works WP16 = new Works();
			WP16.Image = new BitmapImage(new Uri(@"/Images/MS001.jpg", UriKind.Relative));


			Works WP17 = new Works();
			WP17.Image = new BitmapImage(new Uri(@"/Images/MS001.jpg", UriKind.Relative));


			Works[] data = { WP10, WP11, WP12, WP13, WP14, WP15, WP16, WP17, WP10, WP11, WP12, WP13, WP14, WP15, WP16, WP17, WP10, WP11, WP12, WP10, WP10, WP15, WP16, WP17 };
			UploadList.ItemsSource = data;
			PagedCollectionView P = new PagedCollectionView(data);
			UploadList.ItemsSource = P;
			UploadImageListPG.Source = P;
		}

	}
}
